<div class="box box-info">
    <div class="box-header with-border">
        <h3 class="box-title">编辑</h3>
        <a href="{:url('contentdesigns/index')}" title="返回列表"><i class="fa fa-fw fa-reply-all"></i></a>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal" action="{if($option == 2)}{:url('contentdesigns/editDesigns',['id'=>$info['id']])}{else /}{:url('contentdesigns/addDesigns')}{/if}" method="post">
        <input type='hidden' name='id' value='' />
        <div class="box-body">
            <div class="row">
                <!--mainconent start-->
                <section class="col-lg-9">
                    {:adminFormInputText('title','标题',isset($info)?$info['title']:'',1)}
                    {:adminFormInputText('number','图纸编号',isset($info)?$info['number']:'',1)}
                    {:adminFormRadio('standard','标准产品',['否','是'],isset($info)?$info['standard']:0)}
                    <!-- {:adminFormInputText('keywords','关键词',isset($info)?$info['keywords']:'')} -->
                    {:adminFormTextarea('description','设计理念',isset($info)?$info['description']:'')}
                    {:adminFormInputNumber('floor','楼层',isset($info)?$info['floor']:1,1)}
                    {:adminFormInputNumber('acreage','面积',isset($info)?$info['acreage']:0,1,'㎡')}
                    {:adminFormInputNumber('cost','造价',isset($info)?$info['cost']:0,1,'万:RMB')}
                    {:adminFormInputNumber('width','宽度',isset($info)?$info['width']:0,1,'米')}
                    {:adminFormInputNumber('depth','进深',isset($info)?$info['depth']:0,1,'米')}
                    {:adminFormCheckbox('type','风格',$type,isset($info)?$info['type']:0)}
                    {:adminFormRadio('series','风格',$series,isset($info)?$info['series']:0)}
                    {:adminFormRadio('score','推荐级别',$score,isset($info)?$info['score']:3)}
                    {:adminFormInputFile('gif','动画视频',isset($info)?$info['gif']:'')}
                    {:adminFormTextarea('content','内容详情',isset($info)?$info['content']:'','','',10,10)}
                    {:adminFormMultiFile(isset($info)?$info['multi_file']:[])}

                </section>
                <!--mainconent end-->
                <section class="col-lg-3">
                    {include file="field/thumb" /}
                </section>

            </div>
            <hr/>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-6">
                    <button type="reset" class="btn btn-default">重置</button>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <button type="submit" class="btn btn-info">提交</button>
                </div>
                <div class="col-sm-4"></div>
            </div>
        </div>
    </form>
</div>
<script type='text/javascript'>
    var contentObj;
</script>
